﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Text;

namespace CO9APPFORM.UserControls
{
    public partial class TagKeyIn : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string Value 
        {
            get
            {
                return hdfTag.Value;
            }
            set
            {
                hdfTag.Value = value;
                string[] val = value.Trim(new char[]{'[',']'}).Split(new char[]{','});

                foreach(string s in val)
                {
                    HtmlGenericControl c = new HtmlGenericControl("li");
                    c.InnerText = s;
                    tags.Controls.Add(c);
                }
            }

        }
    }
}